package com.gopay.common.domain.oldmermove;

// Generated 2014-7-3 15:52:13 by Hibernate Tools 3.4.0.CR1

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.constants.oldmermove.OldMerMoveStatus;
import com.gopay.common.constants.oldmermove.OldMerMoveStep;
import com.gopay.common.constants.oldmermove.OldMerTranEffectStatus;

/**
 * 老平台迁移商户记录
 * @OldMovedMer.java
 * @author lizheng
 * @2014-7-3 下午4:26:06  www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "OLD_MOVED_MER")
public class OldMovedMer implements java.io.Serializable {

    /**
     * 
     */
    private static final long serialVersionUID = 1L;
    private String oldMerId;
    private String oldVcardNo;
    private String newMerId;
    private String newVcardNo;
    private OldMerMoveStatus moveStatus;
    private OldMerMoveStep moveStep;
    private String resultMsg;
    private Date createdTs;
    private Date lastUpdTs;
    /** 老平台管理员登录密码 */
    private String oldLoginPwd;
    /** 交易生效状态 0-未设置,1-已设置,2,已生效 */
    private OldMerTranEffectStatus tranEffectStatus;
    /** 老平台邮箱 */
    private String oldEmail;
    /** 旧平台下级用户email和新平台userId对应关系 */
    private String oldEmailNewUserIdRelate;
    /** 旧平台企业客户号 '付款到银行'交易使用 */
    private String customerId;

    public OldMovedMer() {
    }

    public OldMovedMer(String oldMerId, String oldVcardNo, OldMerMoveStatus moveStatus, OldMerMoveStep moveStep) {
        this.oldMerId = oldMerId;
        this.oldVcardNo = oldVcardNo;
        this.moveStatus = moveStatus;
        this.moveStep = moveStep;
    }

    public OldMovedMer(String oldMerId, String oldVcardNo, String newMerId, String newVcardNo, OldMerMoveStatus moveStatus,
            OldMerMoveStep moveStep, String resultMsg, Date createdTs, Date lastUpdTs) {
        this.oldMerId = oldMerId;
        this.oldVcardNo = oldVcardNo;
        this.newMerId = newMerId;
        this.newVcardNo = newVcardNo;
        this.moveStatus = moveStatus;
        this.moveStep = moveStep;
        this.resultMsg = resultMsg;
        this.createdTs = createdTs;
        this.lastUpdTs = lastUpdTs;
    }

    @Id
    @Column(name = "OLD_MER_ID", unique = true, nullable = false, length = 10)
    public String getOldMerId() {
        return this.oldMerId;
    }

    public void setOldMerId(String oldMerId) {
        this.oldMerId = oldMerId;
    }

    @Column(name = "OLD_VCARD_NO", nullable = false, length = 19)
    public String getOldVcardNo() {
        return this.oldVcardNo;
    }

    public void setOldVcardNo(String oldVcardNo) {
        this.oldVcardNo = oldVcardNo;
    }

    @Column(name = "NEW_MER_ID", length = 10)
    public String getNewMerId() {
        return this.newMerId;
    }

    public void setNewMerId(String newMerId) {
        this.newMerId = newMerId;
    }

    @Column(name = "NEW_VCARD_NO", length = 19)
    public String getNewVcardNo() {
        return this.newVcardNo;
    }

    public void setNewVcardNo(String newVcardNo) {
        this.newVcardNo = newVcardNo;
    }

    @Column(name = "MOVE_STATUS", nullable = false)
    @Enumerated(EnumType.ORDINAL)
    public OldMerMoveStatus getMoveStatus() {
        return this.moveStatus;
    }

    public void setMoveStatus(OldMerMoveStatus moveStatus) {
        this.moveStatus = moveStatus;
    }

    @Column(name = "MOVE_STEP", nullable = false)
    @Enumerated(EnumType.ORDINAL)
    public OldMerMoveStep getMoveStep() {
        return this.moveStep;
    }

    public void setMoveStep(OldMerMoveStep moveStep) {
        this.moveStep = moveStep;
    }

    @Column(name = "RESULT_MSG", length = 100)
    public String getResultMsg() {
        return this.resultMsg;
    }

    public void setResultMsg(String resultMsg) {
        this.resultMsg = resultMsg;
    }

    @Column(name = "CREATED_TS")
    public Date getCreatedTs() {
        return this.createdTs;
    }

    public void setCreatedTs(Date createdTs) {
        this.createdTs = createdTs;
    }

    @Column(name = "LAST_UPD_TS")
    public Date getLastUpdTs() {
        return this.lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

    @Column(name = "OLD_LOGIN_PWD", length = 50)
    public String getOldLoginPwd() {
        return oldLoginPwd;
    }

    public void setOldLoginPwd(String oldLoginPwd) {
        this.oldLoginPwd = oldLoginPwd;
    }

    @Column(name = "TRAN_EFFECT_STATUS")
    @Enumerated(EnumType.ORDINAL)
    public OldMerTranEffectStatus getTranEffectStatus() {
		return tranEffectStatus;
	}

	public void setTranEffectStatus(OldMerTranEffectStatus tranEffectStatus) {
		this.tranEffectStatus = tranEffectStatus;
	}

	@Column(name = "OLD_EMAIL")
	public String getOldEmail() {
		return oldEmail;
	}

	public void setOldEmail(String oldEmail) {
		this.oldEmail = oldEmail;
	}

	@Column(name = "OLD_EMAIL_NEW_USERID_RELATE")
	public String getOldEmailNewUserIdRelate() {
		return oldEmailNewUserIdRelate;
	}

	public void setOldEmailNewUserIdRelate(String oldEmailNewUserIdRelate) {
		this.oldEmailNewUserIdRelate = oldEmailNewUserIdRelate;
	}

    @Column(name = "CUSTOMER_ID")
	public String getCustomerId() {
		return customerId;
	}

	public void setCustomerId(String customerId) {
		this.customerId = customerId;
	}

}
